package com.acme.bankapp.domain.bank;

public class SavingAccount extends AbstractAccount {
	public SavingAccount(final double balance) {
		super(balance);
	}

	public void withdraw(double amount) {
		if (amount <= 0) {
			// MYTODO: throw exception
		} else if (amount > balance) {
			// MYTODO: throw exception
		} else {
			balance -= amount;
		}
	}
	
	public double getMaximumAmountToWithdraw() {
		return balance;
	}
}
